﻿using Model.CustomDataType;
using System;

namespace Model
{
    public class Person : MarshalByRefObject
    {
        public override object InitializeLifetimeService()
        {
            return null;
        }
        public enum Sex
        {
            NONE,// 0
            MALE,// 1
            FEMALE//2
        }
        protected string fullName;
        protected CMDateTime dateOfBirth;
        protected Sex sex;
        protected string address;

        public Person()
        {
            fullName = "";
            dateOfBirth = new CMDateTime();
            sex = Sex.NONE;
            address = "";
        }
        public Person(string fullName)
        {
            this.fullName = fullName;
        }
        public Person(string fullname, CMDateTime dob, string address, Sex sex)
        {
            this.fullName = fullname;
            this.dateOfBirth = dob;
            this.sex = sex;
            this.address = address;
        }

        public string getFullName()
        {
            return fullName;
        }
        public void setFullName(string fullname)
        {
            this.fullName = fullname;
        }

        public Sex getSex()
        {
            return sex;
        }
        public void setSex(Sex sex)
        {
            this.sex = sex;
        }

        public CMDateTime getDateOfBirth()
        {
            return dateOfBirth;
        }
        public void setDateOfBirth(CMDateTime date)
        {
            this.dateOfBirth = date;
        }

        public string getAddress()
        {
            return address;
        }
        public void setAddress(string address)
        {
            this.address = address;
        }

    }
}
